// *******************************************************************************************************
// # 物件詳細 共通
//   ・マップ
// *******************************************************************************************************

(function(win, doc) {

	/* マップ
	----------------------------------- */
	function makeMap() {
		var x = $('.map form #lat').val(),
			y = $('.map form #lng').val(),
			scl = 400,
			map = null,
			K1 = 'apanew',
			K2 = '1205jdwa';

		map = new Mapple.TouchMap("map", 300, 285, x, y, scl, { k1: K1, k2: K2, scaleOperateMethod: 'button' });

		var iconLayer = map.createOverlayIcons();
		iconLayer.append("icon0", x, y, {
			normalSrc: "/static/sp/shared/images/icon/icn_map_shop.png",
			clickMove: true,
			cursor: "pointer",
			scaleLevel: null,
			state: 'normal',
			normal: {
				leftOffset: -20,
				leftOffsetUnit: 'pixels',
				topOffset: 60,
				topOffsetUnit: 'pixels',
				scale: 1.0
			}
		});
	}

	/* 実行
	----------------------------------- */
	$(function() {
		makeMap();
	});

})(this, document);
